﻿@using Microsoft.AspNet.Identity
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title - 医院后台管理系统</title>
    <meta name="description" content="Dashboard" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link rel="shortcut icon" href="@Url.Content("~/assets/img/favicon.png")" type="image/x-icon">
    <!--Basic Styles-->
    <link href="@Url.Content("~/assets/css/bootstrap.min.css")" rel="stylesheet" />
    <link id="bootstrap-rtl-link" href="" rel="stylesheet" />
    <link href="@Url.Content("~/assets/css/font-awesome.min.css")" rel="stylesheet" />
    <link href="@Url.Content("~/assets/css/weather-icons.min.css")" rel="stylesheet" />
    <!--Beyond styles-->
    <link id="beyond-link" href="@Url.Content("~/assets/css/beyond.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/assets/css/demo.min.css")" rel="stylesheet" />
    <link href="@Url.Content("~/assets/css/typicons.min.css")" rel="stylesheet" />
    <link href="@Url.Content("~/assets/css/animate.min.css")" rel="stylesheet" />
    <link id="skin-link" href="" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/Content/kendo/2016.2.504/kendo.common-bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/kendo/2016.2.504/kendo.bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <!--Skin Script: Place this script in head to load scripts for skins and rtl support-->
    <script src="@Url.Content("~/assets/js/skins.min.js")"></script>
    <script src="@Url.Content("~/assets/js/jquery-2.0.3.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo/2016.2.504/jszip.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo/2016.2.504/kendo.all.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo/2016.2.504/kendo.aspnetmvc.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo/2016.2.504/cultures/kendo.culture.zh-CN.min.js")"></script>
    @RenderSection("scripts",false)
    <style>
      body *{
        font-family: "\5fae\8f6f\96c5\9ed1";
        }
      .page-sidebar .sidebar-menu .submenu li.active>a {
        color: #000000;
        background-color: rgba(0,0,0,.2);
      }
      .page-sidebar .sidebar-menu li.active>a {
        color: #000000;
        background-color: rgba(0,0,0,.2);
      }
    </style>
</head>
<body>
    <!-- Loading Container -->
    <div class="loading-container">
        <div class="loading-progress">
            <div class="rotator">
                <div class="rotator">
                    <div class="rotator colored">
                        <div class="rotator">
                            <div class="rotator colored">
                                <div class="rotator colored"></div>
                                <div class="rotator"></div>
                            </div>
                            <div class="rotator colored"></div>
                        </div>
                        <div class="rotator"></div>
                    </div>
                    <div class="rotator"></div>
                </div>
                <div class="rotator"></div>
            </div>
            <div class="rotator"></div>
        </div>
    </div>
    <!--  /Loading Container -->
    <!-- Navbar -->
    <div class="navbar">
        <div class="navbar-inner">
            <div class="navbar-container">
                <!-- Navbar Barnd -->
                <div class="navbar-header pull-left">
                    <a href="#" class="navbar-brand">
                        <small>
                            <img src="@Url.Content("~/assets/img/logo.png")" alt=""/>
                        </small>
                    </a>
                </div>

                <!-- /Navbar Barnd -->
                <!-- Sidebar Collapse -->
                <div class="sidebar-collapse" id="sidebar-collapse">
                    <i class="collapse-icon fa fa-bars"></i>
                </div>
                @*<div class="sidebar-collapse"  style="width:auto; left: 230px; text-align: center;margin:0px auto ">
                    <h4><b>医院后台管理系统</b></h4>
                </div>*@
                <!-- /Sidebar Collapse -->
                <!-- Account Area and Settings --->
                <div class="navbar-header pull-right">

                    <div class="navbar-account">
                        <ul class="account-area">
                            <li>
                                <a class="login-area dropdown-toggle" data-toggle="dropdown">
                                    <div class="avatar" title="View your public profile">
                                        <img src="@Url.Content("~/assets/img/avatars/adam-jansen.jpg")">
                                    </div>
                                    <section>
                                        <h2><span class="profile"><span>@User.Identity.GetUserName()</span></span></h2>
                                    </section>
                                </a>
                                <!--Login Area Dropdown-->
                                <ul class="pull-right dropdown-menu dropdown-arrow dropdown-login-area" style="min-width:200px">
                                    <li class="username"><a>@User.Identity.GetUserName()</a></li>
                                    <!--Avatar Area-->
                                    <li class="edit">
                                        @*                                        <a href="profile.html" class="pull-left">Profile</a>*@
                                        <a href="@Url.Action("ChangePassword", "Manage")" class="pull-right">修改密码</a>
                                    </li>
                                    <!--Theme Selector Area-->
                                    <li class="theme-area">
                                        <ul class="colorpicker" id="skin-changer">
                                            <li><a class="colorpick-btn" href="#" style="background-color: #5DB2FF;" rel="@Url.Content("~/assets/css/skins/blue.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #2dc3e8;" rel="@Url.Content("~/assets/css/skins/azure.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #03B3B2;" rel="@Url.Content("~/assets/css/skins/teal.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #53a93f;" rel="@Url.Content("~/assets/css/skins/green.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #FF8F32;" rel="@Url.Content("~/assets/css/skins/orange.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #cc324b;" rel="@Url.Content("~/assets/css/skins/pink.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #AC193D;" rel="@Url.Content("~/assets/css/skins/darkred.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #8C0095;" rel="@Url.Content("~/assets/css/skins/purple.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #0072C6;" rel="@Url.Content("~/assets/css/skins/darkblue.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #585858;" rel="@Url.Content("~/assets/css/skins/gray.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #474544;" rel="@Url.Content("~/assets/css/skins/black.min.css")"></a></li>
                                            <li><a class="colorpick-btn" href="#" style="background-color: #001940;" rel="@Url.Content("~/assets/css/skins/deepblue.min.css")"></a></li>
                                        </ul>
                                    </li>
                                    <!--/Theme Selector Area-->
                                    <li class="dropdown-footer">
                                        <a href="@Url.Action("LogOff", "Account")">
                                            注销
                                        </a>
                                    </li>
                                </ul>
                                <!--/Login Area Dropdown-->
                            </li>
                            <!-- /Account Area -->
                            <!--Note: notice that setting div must start right after account area list.
                            no space must be between these elements-->
                            <!-- Settings -->
                        </ul>
                        <div class="setting">
                            <a id="btn-setting" title="Setting" href="#">
                                <i class="icon glyphicon glyphicon-cog"></i>
                            </a>
                        </div>
                        <div class="setting-container">
                            <label>
                                <input type="checkbox" id="checkbox_fixednavbar">
                                <span class="text">固定导航栏</span>
                            </label>
                            <label>
                                <input type="checkbox" id="checkbox_fixedsidebar">
                                <span class="text">固定侧边栏</span>
                            </label>
                            @*<label>
                                <input type="checkbox" id="checkbox_fixedbreadcrumbs">
                                <span class="text">固定面包屑</span>
                            </label>*@
                            <label>
                                <input type="checkbox" id="checkbox_fixedheader">
                                <span class="text">固定页头</span>
                            </label>
                        </div>
                        <!-- Settings -->
                    </div>
                </div>
                <!-- /Account Area and Settings -->
            </div>
        </div>
    
    </div>
    <!-- /Navbar -->
    <!-- Main Container -->
    <div class="main-container container-fluid">
        <!-- Page Container -->
        <div class="page-container">
            <!-- Page Sidebar -->
            <div class="page-sidebar" id="sidebar">
                <!-- Page Sidebar Header-->
                <div class="sidebar-header-wrapper">
                    <input type="text" class="searchinput" />
                    <i class="searchicon fa fa-search"></i>
                    <div class="searchhelper"></div>
                </div>
                <!-- /Page Sidebar Header -->
                <!-- Sidebar Menu -->
                <ul class="nav sidebar-menu">
                    <!--Dashboard-->
                    <li id="home">
                        <a href="@Url.Action("Index", "Home")">
                            <i class="menu-icon glyphicon glyphicon-home"></i>
                            <span class="menu-text"> 首页 </span>
                        </a>
                    </li>
                    @if (HttpContext.Current.User.IsInRole("Admin"))
                    {
                    <!--基础信息管理-->
                    <li class="open">
                        <a href="#" class="menu-dropdown">
                            <i class="menu-icon fa fa-desktop"></i>
                            <span class="menu-text"> 基础信息管理 </span>
                            <i class="menu-expand"></i>
                        </a>
                        <ul class="submenu">
                            <li id="depart">
                                <a href="@Url.Action("Depart","Home")">
                                    <span class="menu-text">科室管理</span>
                                </a>
                            </li>
                            <li id="doctor">
                                <a href="@Url.Action("Doctor","Home")" class="menu-dropdown">
                                    <span class="menu-text">医生管理</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                   }
        
                    <!--报表统计-->
                    <li class="open">
                        <a href="#" class="menu-dropdown">
                            <i class="menu-icon fa fa-table"></i>
                            <span class="menu-text"> 报表统计 </span>
                            <i class="menu-expand"></i>
                        </a>
                        <ul class="submenu">
                            <li id="apptReport">
                                <a href="@Url.Action("ApptReport", "Report")">
                                    <span class="menu-text">挂号统计报表</span>
                                </a>
                            </li>
                            <li id="billReport">
                                <a href="@Url.Action("BillReport", "Report")">
                                    <span class="menu-text">缴费统计报表</span>
                                </a>
                            </li>
                            <li id="prepayReport">
                                <a href="@Url.Action("PrepayReport", "Report")">
                                    <span class="menu-text">预缴金统计报表</span>
                                </a>
                            </li>
                            <li id="dinnerReport">
                                <a href="@Url.Action("DinnerReport", "Report")">
                                    <span class="menu-text">订餐统计报表</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                    @if (HttpContext.Current.User.IsInRole("Admin"))
                    {
                        <!--用户管理-->
                        <li class="open">
                            <a href="#" class="menu-dropdown">
                                <i class="menu-icon fa fa-bar-chart-o"></i>
                                <span class="menu-text"> 用户管理 </span>
                                <i class="menu-expand"></i>
                            </a>
                            <ul class="submenu">
                                <li id="user">
                                    <a href="@Url.Action("Index", "UsersAdmin")">
                                        <span class="menu-text">用户管理</span>
                                    </a>
                                </li>
                                <li id="role">
                                    <a href="@Url.Action("Index", "RolesAdmin")">
                                        <span class="menu-text">角色管理</span>
                                    </a>
                                </li>
                            </ul>
                        </li>
                    }
                    <li class="open">
                        <a href="#" class="menu-dropdown">
                            <i class="menu-icon fa fa-pencil-square-o"></i>
                            <span class="menu-text"> 黑名单 </span>
                            <i class="menu-expand"></i>
                        </a>
                        <ul class="submenu">
                            <li id="blackList">
                                <a href="@Url.Action("BlackList","Home")">
                                    <span class="menu-text">黑名单管理</span>
                                </a>
                            </li>
                        </ul>
                    </li>
                </ul>
                <!-- /Sidebar Menu -->
            </div>
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="fa fa-home"></i>
                            <a href="@Url.Action("Index", "Home")">首页</a>
                        </li>
                        @if (!string.IsNullOrEmpty(@ViewBag.ModuleName))
                        {
                            <li>
                                <a href="@ViewBag.ModuleLink">@ViewBag.ModuleName</a>
                            </li>
                        }
                        @if (!string.IsNullOrEmpty(@ViewBag.ModuleName))
                        {
                            <li class="active">@ViewBag.PageName</li>
                        }
                    </ul>
                </div>
                <!-- /Page Breadcrumb -->
                <!-- Page Header -->
                <div class="page-header position-relative">
                    <div class="header-title">
                        <h1>
                            @ViewBag.PageTitle
                        </h1>
                    </div>
                    <!--Header Buttons-->
                    <div class="header-buttons">
                        <a class="sidebar-toggler" href="#">
                            <i class="fa fa-arrows-h"></i>
                        </a>
                        <a class="refresh" id="refresh-toggler" href="">
                            <i class="glyphicon glyphicon-refresh"></i>
                        </a>
                        <a class="fullscreen" id="fullscreen-toggler" href="#">
                            <i class="glyphicon glyphicon-fullscreen"></i>
                        </a>
                    </div>
                    <!--Header Buttons End-->
                </div>
                <!-- /Page Header -->
                <!-- Page Body -->
                <div class="page-body">
                    <div class="row">
                        <div class="col-lg-12 col-sm-12 col-xs-12">
                            @RenderBody()
                        </div>
                    </div>
                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
        </div>
        <!-- /Page Container -->
        <!-- Main Container -->
    </div>
    <!--Basic Scripts-->
    <script src="@Url.Content("~/assets/js/bootstrap.min.js")"></script>
    <!--Beyond Scripts-->
    <script src="@Url.Content("~/assets/js/beyond.min.js")"></script>
    <script>
        kendo.culture("zh-CN");
    </script> 
</body>
</html>
